﻿using System.Web.Services;
using System.Web.Script.Services;

/// <summary>
/// Summary description for MembershipService
/// </summary>
[ScriptService]
public class MembershipService : System.Web.Services.WebService
{
    [WebMethod]
    public bool IsUsernameAvailable(string username)
    {
        if (username.StartsWith("a"))
            return false;

        // else
        return true;
    }
}